remove tep_session_close() function, remove call in application_bottom as session_write_close() is being registered as a shutdown function when the session starts