That's why you should check the log files for your applications from time to time. Or actually, make it a regular thing.
Know your tools and platforms, check in what ways there is logging.
For web development, these logs are interesting:
- Windows Event Log - for ASP.NET exceptions
- IIS Server Log
- PHP Log