Nearest airport? You sure about that? Are we talking a Baron or a 777 here? Because I certainly wouldn'’t be landing at the “nearest” if continuing to a much better alternative was an option.
Most if not all twin jet airliners will direct you to land ASAP or nearest suitable airport (or similar wording) in the case of an engine failure. Ultimately if can land there it is the safest option after all.