Joseph Corani, 43, kept a security code to his former workplace after having his contract terminated, court papers show.