Fixed bug with partial wakelocks

Fixed bug where app would stop working when phone was locked with power
button, due to partial wake locks being released that had not been
acquired.