adding a lot of exception catching to try and keep it running

Still need to add logging to keep track of what is going on