How to make sure plugin code doesn't run on login screen

I have a chunk of plugin code that works fine when on the admin pages, but errors out terribly when on the login page. Is there any way to tell if I'm running in the login screen and bypass a chunk of code?

Here's what's erroring out:

// Add the menu
// all this will need to move into the form function soon enough.
ob_start(); // use this to turn off output buffering so the zp_ui_form_process function can work without headers
add_action('admin_menu', 'zp_add_debug_menu'); // Hook for adding admin menus
if (!isset($_POST['zp_handle_form'])) {
    ob_end_flush(); // but, if we're not in the form processing code, turn it off