added error handling for declining the rest of the applications if a job offer is full