Implemented a panic procedure