SyntaxFix
Write A Post
Hire A Developer
Questions
Have a look at this excellent brief post on how to do this properly.
Essentially: catch the InterruptedException. Remember that you must add this catch-block. The post explains this a bit further.
InterruptedException